home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / util / he_proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-28  |  5.5 KB  |  316 lines

  1. /***************************************************************************
  2. *
  3. *
  4. *                         NCSA HDF version 3.2r2
  5. *                            October 30, 1992
  6. *
  7. * NCSA HDF Version 3.2 source code and documentation are in the public
  8. * domain.  Specifically, we give to the public domain all rights for future
  9. * licensing of the source code, all resale rights, and all publishing rights.
  10. *
  11. * We ask, but do not require, that the following message be included in all
  12. * derived works:
  13. *
  14. * Portions developed at the National Center for Supercomputing Applications at
  15. * the University of Illinois at Urbana-Champaign, in collaboration with the
  16. * Information Technology Institute of Singapore.
  17. *
  18. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  19. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  20. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  21. *
  22. ****************************************************************************
  23. */
  24.  
  25. /*
  26. $Header: /hdf/hdf/v3.2r2/util/RCS/he_proto.h,v 1.4 1992/10/13 20:30:23 koziol beta koziol $
  27.  
  28. $Log: he_proto.h,v $
  29.  * Revision 1.4  1992/10/13  20:30:23  koziol
  30.  * Updates for v3.2r2 release
  31.  * .,
  32.  *
  33.  * Revision 1.1  1992/09/18  14:56:22  koziol
  34.  * Initial revision
  35.  *
  36.  * Revision 1.4  1992/09/11  18:32:51  chouck
  37.  * Assorted MAC mungings
  38.  *
  39.  * Revision 1.3  1992/08/11  23:05:39  sxu
  40.  * Added parameter 'int raw' in prototype dump()
  41.  *
  42.  * Revision 1.2  1992/07/15  21:48:48  sxu
  43.  * No change.
  44.  *
  45.  * Revision 1.1  1992/07/14  16:38:12  mlivin
  46.  * Initial revision
  47.  *
  48. */
  49. /* Prototypes for hdfed functions */
  50. int HEalias
  51.   PROTO((HE_CMD *cmd));
  52.  
  53. int HEannotate
  54.   PROTO((HE_CMD *cmd));
  55.  
  56. int HEclose
  57.   PROTO((HE_CMD *cmd));
  58.  
  59. int HEdelete
  60.   PROTO((HE_CMD *cmd));
  61.  
  62. int HEdisplay
  63.   PROTO((HE_CMD *cmd));
  64.  
  65. int HEdump
  66.   PROTO((HE_CMD *cmd));
  67.  
  68. int HEgetR8
  69.   PROTO((HE_CMD *cmd));
  70.  
  71. int HEhelp
  72.   PROTO((HE_CMD *cmd));
  73.  
  74. int HEif
  75.   PROTO((HE_CMD *cmd));
  76.  
  77. int HEinfo
  78.   PROTO((HE_CMD *cmd));
  79.  
  80. int HEnext
  81.   PROTO((HE_CMD *cmd));
  82.  
  83. int HEopen
  84.   PROTO((HE_CMD *cmd));
  85.  
  86. int HEprev
  87.   PROTO((HE_CMD *cmd));
  88.  
  89. int HEput
  90.   PROTO((HE_CMD *cmd));
  91.  
  92. int HEputR8
  93.   PROTO((HE_CMD *cmd));
  94.  
  95. int HEquit
  96.   PROTO((HE_CMD *cmd));
  97.  
  98. int HErevert
  99.   PROTO((HE_CMD *cmd));
  100.  
  101. int HEselect
  102.   PROTO((HE_CMD *cmd));
  103.  
  104. int HEunalias
  105.   PROTO((HE_CMD *cmd));
  106.  
  107. int HEwait
  108.   PROTO((HE_CMD *cmd));
  109.  
  110. int HEwrite
  111.   PROTO((HE_CMD *cmd));
  112.  
  113. int annotate();
  114.  
  115. int backupFile
  116.   PROTO((char *file));
  117.  
  118. char *backupName
  119.   PROTO((char *file));
  120.  
  121. int bigImg
  122.   PROTO((unsigned char *targ, unsigned char *src));
  123.  
  124. char * catStr
  125.   PROTO((char *s1, char *s2));
  126.  
  127. int closeFile
  128.   PROTO((int keep));
  129.  
  130. void cmdLoop
  131.   PROTO((void));
  132.  
  133. void convertTemplate
  134.   PROTO((char *template, int n1, int n2, int n3, char **pname));
  135.  
  136. int copyFile
  137.   PROTO((char *from, char *to));
  138.  
  139. char *copyStr
  140.   PROTO((char *str));
  141.  
  142. int delete
  143.   PROTO((int curr));
  144.  
  145. void deleteCmd
  146.   PROTO((HE_CMD *cmd));
  147.  
  148. int deleteDesc
  149.   PROTO((int desc));
  150.  
  151. int desc2Grp
  152.   PROTO((int desc));
  153.  
  154. int display
  155.   PROTO((int c, int x, int y, int f, int l));
  156.  
  157. int dump
  158.   PROTO((int32 length, int offset, char *foramt, int raw));
  159.  
  160. int fileOpen
  161.   PROTO((void));
  162.  
  163. void fillTemplate
  164.   PROTO((char **template, char **pout, char *s, char templateChar));
  165.  
  166. HE_CMD *findAlias();
  167.  
  168. int findDesc
  169.   PROTO((tag_ref_ptr dd));
  170.  
  171. HE_FUNC findFunc();
  172. int findKey();
  173.  
  174. int findOpt
  175.   PROTO((char *word));
  176.  
  177. int32 getAnn
  178.   PROTO((int ann, int16 tag, int16 ref, char **pBuf));
  179.  
  180. HE_CMD *getCmd
  181.     PROTO((void));
  182.  
  183. int getCurrRig
  184.   PROTO((int32 *pXdim, int32 *pYdim, char **pPalette, char **pRaster));
  185.  
  186. int32 getElement
  187.   PROTO((int desc, char **pdata));
  188.  
  189. int getLine();
  190. int getNewRef();
  191.  
  192. int getPix
  193.   PROTO((void));
  194.  
  195. int getR8
  196.   PROTO((int xdim, int ydim, char *image, char *pal, int compress));
  197.  
  198. int getSpace
  199.   PROTO((void));
  200.  
  201. int getTmpName
  202.   PROTO((char **pname));
  203.  
  204. void goTo
  205.   PROTO((int desc));
  206.  
  207. int hasReference
  208.   PROTO((int desc));
  209.  
  210. void help
  211.   PROTO((void));
  212.  
  213. int info
  214.   PROTO((int all, int longout, int group, int label));
  215.  
  216. void infoDesc
  217.   PROTO((int desc, int longout, int label));
  218.  
  219. int initFile
  220.   PROTO((char *file));
  221.  
  222. int isGrp
  223.   PROTO((uint16 tag));
  224.  
  225. int isNumber();
  226.  
  227. int largeSet
  228.   PROTO((void));
  229.  
  230. int main
  231.   PROTO((int argc, char *argv[]));
  232.  
  233. HE_CMD *mkDupCmd();
  234. char *nextToken();
  235. char *nextWord();
  236.  
  237. int numCompare();
  238.  
  239. int od
  240.   PROTO((char *format, char *file));
  241.  
  242. int openFile
  243.   PROTO((char *file, int backup));
  244.  
  245. HE_CMD *parse();
  246. HE_CMD *parseCmd();
  247. HE_PRED *parsePred();
  248.  
  249. int pixImage
  250.   PROTO((int usepal));
  251.  
  252. void printAlias();
  253. void prompt();
  254.  
  255. int put
  256.   PROTO((char *template, int verbose));
  257.  
  258. int putAnn
  259.   PROTO((int ann, uint16 tag, uint16 ref, char *buf, int32 len));
  260.  
  261. int putElement
  262.   PROTO((char *file, uint16 tag, uint16 ref, char *data, int32 len));
  263.  
  264. int putR8
  265.   PROTO((char *image, char *pal, int verbose));
  266.  
  267. int putWithTempl
  268.   PROTO((char *template, int n1, int n2, int n3, char *data, int length, int verbose));
  269.  
  270. int quit
  271.   PROTO((int status));
  272.  
  273. int rImage
  274.   PROTO((int usepal));
  275.  
  276. int32 readFromFile
  277.   PROTO((char *file, char **pBuf));
  278.  
  279. int recurseDel
  280.   PROTO((int curr));
  281.  
  282. int removeFile
  283.   PROTO((char *file));
  284.  
  285. int resetPred();
  286.  
  287. int revert
  288.   PROTO((void));
  289.  
  290. int rleIt
  291.   PROTO((char *buf, char *bufto, int len));
  292.  
  293. int satPred();
  294. int setAlias();
  295.  
  296. int setPal
  297.   PROTO((char *pal));
  298.  
  299. int updateDesc
  300.   PROTO((void));
  301.  
  302. int writ
  303.   PROTO((char *file, uint16 tag, uint16 ref));
  304.  
  305. int writeAnnot
  306.   PROTO((char *file, uint16 tag, uint16 ref));
  307.  
  308. int writeElt
  309.   PROTO((char *file, uint16 ref, int elt));
  310.  
  311. int writeGrp
  312.   PROTO((char *file));
  313.  
  314. int writeToFile
  315.   PROTO((char *file, char *data, int32 length));
  316.